package com.springWebFlux.Model;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * @version V1.0  </br>
 * @ClassName ResultModel </br>
 * @Description TODO  </br>
 * @Author tonywang</br>
 * @DATE 3/20/2019 3:43 PM</br>
 */
public class ResultModel {
    private int id;
    private String content;

    public ResultModel() {

    }

    public int getId() {
        return id;
    }

    public ResultModel setId(int pId) {
        id = pId;
        return this;
    }

    public String getContent() {
        return content;
    }

    public ResultModel setContent(String pContent) {
        content = pContent;
        return this;
    }

    /**
     * read property from json string
     * @param id id
     * @param content data
     */
    public ResultModel(@JsonProperty("id") int id,
                       @JsonProperty("context") String content) {
        this.id = id;
        this.content = content;
    }
}
